//
//  OfflineFileCell.m
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/6.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "OfflineFileCell.h"

@interface OfflineFileCell ()

/// viewModle
@property (nonatomic, readwrite, strong) OfflineFileCellModel *viewModel;

/// IBOutlet
@property (weak, nonatomic) IBOutlet UILabel* titleLabel;
@property (weak, nonatomic) IBOutlet UILabel* timeLabel;

@end

@implementation OfflineFileCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

#pragma mark - bind data
- (void)bindViewModel:(OfflineFileCellModel *)viewModel
{
    self.viewModel = viewModel;
    
    @weakify(self);
    
    self.titleLabel.text = viewModel.name;
    self.timeLabel.text = viewModel.date;
}

@end
